﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test.Utility.Helper
{
   public  static class ExpressItemCountHelp
    {
      static  Random ran = new Random();
        public static string ItemCount(this string compannyBriveName) {
            string X="R", Y="Y";
            switch (compannyBriveName) {
                case "圆通": X = "Y"; Y = "T";break;
                case "顺丰": X = "S"; Y = "F"; break;
                case "汇通": X = "H"; Y = "T"; break;
                case "申通": X = "S"; Y = "T"; break;
                case "中通": X = "Z"; Y = "T"; break;
                case "韵达": X = "Y"; Y = "D"; break;
                case "天天": X = "T"; Y = "T"; break;
                default: X = "R"; Y = "Y";break;
            }
           
            string count = X+Y+ DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() +
                DateTime.Now.Day.ToString() + DateTime.Now.Second.ToString() + ((char)ran.Next(65, 90)).ToString();
            return count;
        }
    }
}
